import CompanyInfoInstitutionalTemplateApi from "../api/webPath/CompanyInfoInstitutionalTemplateApi";

// 通过指定模板类型查询模板信息并返回模板名称
export function useTemplateName(templateType: string){
    const name = ref()
    onMounted(async ()=>{
      const {data:{records:templateList}} = await CompanyInfoInstitutionalTemplateApi.getPageData({ templateType });
      name.value = templateList && templateList.length > 0 && templateList[0].templateName
    })

    return name 
}